package com.ruoyi.project.syl_Sxl.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.syl_Sxl.domain.HisOrderType;
import com.ruoyi.project.syl_Sxl.service.IHisOrderTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/syl_Sxl/orderType")
public class HisOrderTypeController extends BaseController {

    @Autowired
    private IHisOrderTypeService iHisOrderTypeService;

    /**
     * 获取背景选择框列表
     */
    @GetMapping("/orderTypeSelect")
    public AjaxResult optionselect()
    {
        List<HisOrderType> list = iHisOrderTypeService.selectAll();
        return AjaxResult.success(list);
    }
}
